package com.huawei.esdk.tp.cxf.enumgen;

public abstract class FreeBusyStateMapping {

    public final static int MIN = 0;
    public final static int MAX = 2;
    
	public static Integer enum2Int(FreeBusyState state){
	    if (null == state)
        {
            return null;
        }
		switch (state) {
		case FREE:
			return 0;
		case BUSY:
			return 1;
		case INVAILD:
			return 2;
		default:
			return null;
		}
	}
	public static FreeBusyState int2Enum(Integer num) {
	    if (null == num)
        {
            return null;
        }
		switch (num) {
		case 0: 
			return FreeBusyState.FREE;
		case 1: 
			return FreeBusyState.BUSY;
		case 2: 
			return FreeBusyState.INVAILD;
		default: 
			return null;
		}
	}
}
